home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _ButtonStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  45 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ButtonSkin;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _ButtonStyle
  9.    {
  10.        
  11.       
  12.       public function _ButtonStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Button");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration("Button",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.paddingTop = 2;
  31.                this.textAlign = "center";
  32.                this.skin = ButtonSkin;
  33.                this.paddingLeft = 10;
  34.                this.fontWeight = "bold";
  35.                this.cornerRadius = 4;
  36.                this.paddingRight = 10;
  37.                this.verticalGap = 2;
  38.                this.horizontalGap = 2;
  39.                this.paddingBottom = 2;
  40.             };
  41.          }
  42.       }
  43.    }
  44. }
  45.